import {Injectable} from '@angular/core';
import {Http, ResponseContentType} from '@angular/http';
import {Observable} from 'rxjs';

@Injectable({
  providedIn: 'root'
})
export class FileService {

  constructor(private http: Http) { }
  downloadFile(url:string): Observable<any>{
		return this.http.get(url, {responseType: ResponseContentType.Blob});
  }
}
